package com.kb.order.service.impl;

import com.kb.order.pojo.OrderDetail;
import com.kb.order.service.IOrderDetailService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

import com.kb.order.dao.OrderDetailDao;

@Service
public class OrderDetailService implements IOrderDetailService {

    @Resource
    private OrderDetailDao orderDetailDao;

    public int insert(OrderDetail pojo){
        return orderDetailDao.insert(pojo);
    }

    public int insertList(List< OrderDetail> pojos){
        return orderDetailDao.insertList(pojos);
    }

    public List<OrderDetail> select(OrderDetail pojo){
        return orderDetailDao.select(pojo);
    }

    public int update(OrderDetail pojo){
        return orderDetailDao.update(pojo);
    }

}
